package com.zdsoft.finance.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zdsoft.framework.core.common.domain.BaseEntity;


/**
 * 风险规则
 * @author longwei
 * @date 2016/11/08
 * @version 1.0
 */
@Entity
@Table(name="zf_product_risk_rule")
public class ProductRiskRule extends BaseEntity{

	/**
	 * 规则
	 */
	@Column(length=255)
	private String rule;
	
	/**
	 * 参数
	 */
	@Column(length=255)
	private String param;
	
	/**
	 * 参数符号
	 */
	@Column(length=32)
	private String paramOperator;
	
	/**
	 * 参数符号名称
	 */
	@Column(length=255)
	private String paramOperatorNm;
	
	/**
	 * 参数值
	 */
	@Column(length=255)
	private String paramNum;
	
	/**
	 * 适用场景
	 */
	@Column(length=255)
	private String applyingSceneCd;
	
	/**
	 * 适用场景
	 */
	@Column(length=255)
	private String applyingSceneNm;
	
	/**
	 * 备注
	 */
	@Lob
	private String remark;
	
	/**
	 * 所属产品
	 */
	@ManyToOne
	@JoinColumn(name="product_id")
	private Product product;

	public String getRule() {
		return rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public String getParamOperator() {
		return paramOperator;
	}

	public void setParamOperator(String paramOperator) {
		this.paramOperator = paramOperator;
	}

	public String getParamOperatorNm() {
		return paramOperatorNm;
	}

	public void setParamOperatorNm(String paramOperatorNm) {
		this.paramOperatorNm = paramOperatorNm;
	}

	public String getParamNum() {
		return paramNum;
	}

	public void setParamNum(String paramNum) {
		this.paramNum = paramNum;
	}

	public String getApplyingSceneCd() {
		return applyingSceneCd;
	}

	public void setApplyingSceneCd(String applyingSceneCd) {
		this.applyingSceneCd = applyingSceneCd;
	}

	public String getApplyingSceneNm() {
		return applyingSceneNm;
	}

	public void setApplyingSceneNm(String applyingSceneNm) {
		this.applyingSceneNm = applyingSceneNm;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

}
